import {defineStore} from "pinia";
// @ts-ignore
import cookie from 'js-cookie'

export const useTokenStore = defineStore("token", {
    state: () => {
        return {
            user: ''
        }
    },
    getters: {},
    actions: {
        setToken(user: string) {
            cookie.set("user", user)
        }
    }
})